<?php defined('SYSPATH') or die('No direct script access.');
 
class Model_Team extends ORM {
	protected $_table_name = 'team';

	public function getAll($postfix) {
		return DB::select('id', array('fio'.$postfix, 'fio'), array('post'.$postfix, 'post'), 'image')
			->from($this->_table_name)
			->order_by('post', 'DESC')
			->as_object()
			->execute();
	}

	/*public function getOne($postfix, $id) {
		return DB::select('id', array('title'.$postfix, 'title'), array('task'.$postfix, 'task'))
			->from($this->_table_name)
			->where('id', '=', $id)
			->as_object()
			->execute()
			->current();
	}*/
}